]> dgit.raspbian.org Git - gnome-shell.git/commit
overview: Protect ::drag-end handlers
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 16 Nov 2017 16:27:12 +0000 (17:27 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 17 Nov 2017 13:34:40 +0000 (14:34 +0100)
commitcdc212ff6ed65cf3aee093c433dd19473c39ba36
tree9f13456b9e5b8b4954d6c93044b360e2b000e56b
parentc53557b4c69366d515790d6a0c9a724f7247e321
overview: Protect ::drag-end handlers

These end up emitting item-drag-end/window-drag-end pretty much
without checks. Given the MetaDnd object may end up emitting
::drag-leave as a result of the plugin ending its grab, this
would result on spurious emission of those events and subsequent
warnings.

For extra paranoia, the _inDrag variable has been split into
_inItemDrag/_inWindowDrag so we can't cross the streams.

https://bugzilla.gnome.org/show_bug.cgi?id=784545
js/ui/overview.js